<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>MySQLi类</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mysqli.summary.html">MySQLi扩展功能概述</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mysqli.affected-rows.html">mysqli::$affected_rows</a></div>
 <div class="up"><a href="book.mysqli.html">Mysqli</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.mysqli" class="reference">
 <h1 class="title">MySQLi类</h1>
 
 
 <div class="partintro"><p class="verinfo">(PHP 5)</p>
 

  <div class="section" id="mysqli.intro">
   <h2 class="title">简介</h2>
   <p class="para">
   代表PHP和Mysql数据库之间的一个连接。
   </p>
  </div>

 
  <div class="section" id="mysqli.synopsis">
   <h2 class="title">类摘要</h2>
 

   <div class="classsynopsis">
    <div class="ooclass"></div>
 

    <div class="classsynopsisinfo">
     <span class="ooclass">
      <strong class="classname">MySQLi</strong>
     </span>
     {</div>

 
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 属性 */</div>
    <div class="fieldsynopsis"><span class="type">int</span> <var class="varname"><a href="mysqli.affected-rows.html">$<var class="varname">mysqli-&gt;affected_rows</var></a></var>;</div>
<div class="fieldsynopsis"><span class="type">string</span> <var class="varname"><a href="mysqli.client-info.html">$<var class="varname">mysqli-&gt;client_info</var></a></var>;</div>
<div class="fieldsynopsis"><span class="type">int</span> <var class="varname"><a href="mysqli.client-version.html">$<var class="varname">mysqli-&gt;client_version</var></a></var>;</div>
<div class="fieldsynopsis"><span class="type">string</span> <var class="varname"><a href="mysqli.connect-errno.html">$<var class="varname">mysqli-&gt;connect_errno</var></a></var>;</div>
<div class="fieldsynopsis"><span class="type">string</span> <var class="varname"><a href="mysqli.connect-error.html">$<var class="varname">mysqli-&gt;connect_error</var></a></var>;</div>
<div class="fieldsynopsis"><span class="type">int</span> <var class="varname">$<var class="varname">errno</var></var>;</div>
<div class="fieldsynopsis"><span class="type">array</span> <var class="varname"><a href="mysqli.error-list.html">$<var class="varname">mysqli-&gt;error_list</var></a></var>;</div>
<div class="fieldsynopsis"><span class="type">string</span> <var class="varname"><a href="mysqli.error.html">$<var class="varname">mysqli-&gt;error</var></a></var>;</div>
<div class="fieldsynopsis"><span class="type">int</span> <var class="varname"><a href="mysqli.field-count.html">$<var class="varname">mysqli-&gt;field_count</var></a></var>;</div>
<div class="fieldsynopsis"><span class="type">int</span> <var class="varname"><a href="mysqli.get-client-version.html">$<var class="varname">mysqli-&gt;client_version</var></a></var>;</div>
<div class="fieldsynopsis"><span class="type">string</span> <var class="varname"><a href="mysqli.get-host-info.html">$<var class="varname">mysqli-&gt;host_info</var></a></var>;</div>
<div class="fieldsynopsis"><span class="type">string</span> <var class="varname"><a href="mysqli.get-proto-info.html">$<var class="varname">mysqli-&gt;protocol_version</var></a></var>;</div>
<div class="fieldsynopsis"><span class="type">string</span> <var class="varname"><a href="mysqli.get-server-info.html">$<var class="varname">mysqli-&gt;server_info</var></a></var>;</div>
<div class="fieldsynopsis"><span class="type">int</span> <var class="varname"><a href="mysqli.get-server-version.html">$<var class="varname">mysqli-&gt;server_version</var></a></var>;</div>
<div class="fieldsynopsis"><span class="type">string</span> <var class="varname"><a href="mysqli.info.html">$<var class="varname">mysqli-&gt;info</var></a></var>;</div>
<div class="fieldsynopsis"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <var class="varname"><a href="mysqli.insert-id.html">$<var class="varname">mysqli-&gt;insert_id</var></a></var>;</div>
<div class="fieldsynopsis"><span class="type">string</span> <var class="varname"><a href="mysqli.sqlstate.html">$<var class="varname">mysqli-&gt;sqlstate</var></a></var>;</div>
<div class="fieldsynopsis"><span class="type">int</span> <var class="varname"><a href="mysqli.thread-id.html">$<var class="varname">mysqli-&gt;thread_id</var></a></var>;</div>
<div class="fieldsynopsis"><span class="type">int</span> <var class="varname"><a href="mysqli.warning-count.html">$<var class="varname">mysqli-&gt;warning_count</var></a></var>;</div>

 
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="methodsynopsis dc-description">
   <span class="type">int</span><span class="methodname"><strong>mysqli_affected_rows</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.mysqli.html" class="type mysqli">mysqli</a></span> <code class="parameter">$link</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">bool</span><span class="methodname"><a href="mysqli.autocommit.html" class="methodname">mysqli::autocommit</a></span>
    ( <span class="methodparam"><span class="type">bool</span> <code class="parameter">$mode</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="mysqli.begin-transaction.html" class="methodname">mysqli::begin_transaction</a></span>
    ([ <span class="methodparam"><span class="type">int</span> <code class="parameter">$flags</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>
   ]] )</div>
<div class="methodsynopsis dc-description">
   <span class="type">bool</span><span class="methodname"><a href="mysqli.change-user.html" class="methodname">mysqli::change_user</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$user</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$password</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$database</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">string</span><span class="methodname"><a href="mysqli.character-set-name.html" class="methodname">mysqli::character_set_name</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">string</span><span class="methodname"><strong>mysqli_get_client_info</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.mysqli.html" class="type mysqli">mysqli</a></span> <code class="parameter">$link</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">int</span><span class="methodname"><strong>mysqli_get_client_version</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.mysqli.html" class="type mysqli">mysqli</a></span> <code class="parameter">$link</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">bool</span><span class="methodname"><a href="mysqli.close.html" class="methodname">mysqli::close</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">bool</span><span class="methodname"><a href="mysqli.commit.html" class="methodname">mysqli::commit</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">int</span><span class="methodname"><strong>mysqli_connect_errno</strong></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">string</span><span class="methodname"><strong>mysqli_connect_error</strong></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">mysqli</span><span class="methodname"><strong>mysqli_connect</strong></span>
    ([ <span class="methodparam"><span class="type">string</span> <code class="parameter">$host</code><span class="initializer"> = ini_get(&quot;mysqli.default_host&quot;)</span></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$username</code><span class="initializer"> = ini_get(&quot;mysqli.default_user&quot;)</span></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$passwd</code><span class="initializer"> = ini_get(&quot;mysqli.default_pw&quot;)</span></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$dbname</code><span class="initializer"> = &quot;&quot;</span></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$port</code><span class="initializer"> = ini_get(&quot;mysqli.default_port&quot;)</span></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$socket</code><span class="initializer"> = ini_get(&quot;mysqli.default_socket&quot;)</span></span>
  ]]]]]] )</div>
<div class="methodsynopsis dc-description">
   <span class="type">bool</span><span class="methodname"><a href="mysqli.debug.html" class="methodname">mysqli::debug</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$message</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">bool</span><span class="methodname"><a href="mysqli.dump-debug-info.html" class="methodname">mysqli::dump_debug_info</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">int</span><span class="methodname"><strong>mysqli_errno</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.mysqli.html" class="type mysqli">mysqli</a></span> <code class="parameter">$link</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">array</span><span class="methodname"><strong>mysqli_error_list</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.mysqli.html" class="type mysqli">mysqli</a></span> <code class="parameter">$link</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">string</span><span class="methodname"><strong>mysqli_error</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.mysqli.html" class="type mysqli">mysqli</a></span> <code class="parameter">$link</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">int</span><span class="methodname"><strong>mysqli_field_count</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.mysqli.html" class="type mysqli">mysqli</a></span> <code class="parameter">$link</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">object</span><span class="methodname"><a href="mysqli.get-charset.html" class="methodname">mysqli::get_charset</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">string</span><span class="methodname"><a href="mysqli.get-client-info.html" class="methodname">mysqli::get_client_info</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">array</span><span class="methodname"><strong>mysqli_get_client_stats</strong></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">int</span><span class="methodname"><strong>mysqli_get_client_version</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.mysqli.html" class="type mysqli">mysqli</a></span> <code class="parameter">$link</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">bool</span><span class="methodname"><a href="mysqli.get-connection-stats.html" class="methodname">mysqli::get_connection_stats</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">string</span><span class="methodname"><strong>mysqli_get_host_info</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.mysqli.html" class="type mysqli">mysqli</a></span> <code class="parameter">$link</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">int</span><span class="methodname"><strong>mysqli_get_proto_info</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.mysqli.html" class="type mysqli">mysqli</a></span> <code class="parameter">$link</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">string</span><span class="methodname"><strong>mysqli_get_server_info</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.mysqli.html" class="type mysqli">mysqli</a></span> <code class="parameter">$link</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">int</span><span class="methodname"><strong>mysqli_get_server_version</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.mysqli.html" class="type mysqli">mysqli</a></span> <code class="parameter">$link</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">mysqli_warning</span><span class="methodname"><a href="mysqli.get-warnings.html" class="methodname">mysqli::get_warnings</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">string</span><span class="methodname"><strong>mysqli_info</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.mysqli.html" class="type mysqli">mysqli</a></span> <code class="parameter">$link</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">mysqli</span><span class="methodname"><a href="mysqli.init.html" class="methodname">mysqli::init</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">mixed</span><span class="methodname"><strong>mysqli_insert_id</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.mysqli.html" class="type mysqli">mysqli</a></span> <code class="parameter">$link</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">bool</span><span class="methodname"><a href="mysqli.kill.html" class="methodname">mysqli::kill</a></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$processid</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">bool</span><span class="methodname"><a href="mysqli.more-results.html" class="methodname">mysqli::more_results</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">bool</span><span class="methodname"><a href="mysqli.multi-query.html" class="methodname">mysqli::multi_query</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$query</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">bool</span><span class="methodname"><a href="mysqli.next-result.html" class="methodname">mysqli::next_result</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">bool</span><span class="methodname"><a href="mysqli.options.html" class="methodname">mysqli::options</a></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$option</code></span>
   , <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$value</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">bool</span><span class="methodname"><a href="mysqli.ping.html" class="methodname">mysqli::ping</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">int</span><span class="methodname"><a href="mysqli.poll.html" class="methodname">mysqli::poll</a></span>
    ( <span class="methodparam"><span class="type">array</span> <code class="parameter reference">&$read</code></span>
   , <span class="methodparam"><span class="type">array</span> <code class="parameter reference">&$error</code></span>
   , <span class="methodparam"><span class="type">array</span> <code class="parameter reference">&$reject</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$sec</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$usec</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="type">mysqli_stmt</span><span class="methodname"><a href="mysqli.prepare.html" class="methodname">mysqli::prepare</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$query</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">mixed</span><span class="methodname"><a href="mysqli.query.html" class="methodname">mysqli::query</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$query</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$resultmode</code><span class="initializer"> = MYSQLI_STORE_RESULT</span></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="type">bool</span><span class="methodname"><a href="mysqli.real-connect.html" class="methodname">mysqli::real_connect</a></span>
    ([ <span class="methodparam"><span class="type">string</span> <code class="parameter">$host</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$username</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$passwd</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$dbname</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$port</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$socket</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$flags</code></span>
  ]]]]]]] )</div>
<div class="methodsynopsis dc-description">
   <span class="type">string</span><span class="methodname"><a href="function.mysqli-escape-string.html" class="methodname">mysqli::escape_string</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$escapestr</code></span>
   )</div>
<div class="methodsynopsis dc-description">
    <span class="type">bool</span><span class="methodname"><a href="mysqli.real-query.html" class="methodname">mysqli::real_query</a></span>
     ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$query</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">mysqli_result</span><span class="methodname"><a href="mysqli.reap-async-query.html" class="methodname">mysqli::reap_async_query</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="mysqli.refresh.html" class="methodname">mysqli::refresh</a></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$options</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="mysqli.release-savepoint.html" class="methodname">mysqli::release_savepoint</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="type">bool</span><span class="methodname"><a href="mysqli.rollback.html" class="methodname">mysqli::rollback</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">int</span><span class="methodname"><a href="mysqli.rpl-query-type.html" class="methodname">mysqli::rpl_query_type</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$query</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="mysqli.savepoint.html" class="methodname">mysqli::savepoint</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="type">bool</span><span class="methodname"><a href="mysqli.select-db.html" class="methodname">mysqli::select_db</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$dbname</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">bool</span><span class="methodname"><a href="mysqli.send-query.html" class="methodname">mysqli::send_query</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$query</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">bool</span><span class="methodname"><a href="mysqli.set-charset.html" class="methodname">mysqli::set_charset</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$charset</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">void</span><span class="methodname"><strong>mysqli_set_local_infile_default</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.mysqli.html" class="type mysqli">mysqli</a></span> <code class="parameter">$link</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">bool</span><span class="methodname"><a href="mysqli.set-local-infile-handler.html" class="methodname">mysqli::set_local_infile_handler</a></span>
    ( <span class="methodparam"><span class="type"><a href="class.mysqli.html" class="type mysqli">mysqli</a></span> <code class="parameter">$link</code></span>
   , <span class="methodparam"><span class="type"><a href="language.types.callable.html" class="type callable">callable</a></span> <code class="parameter">$read_func</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">string</span><span class="methodname"><strong>mysqli_sqlstate</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.mysqli.html" class="type mysqli">mysqli</a></span> <code class="parameter">$link</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">bool</span><span class="methodname"><a href="mysqli.ssl-set.html" class="methodname">mysqli::ssl_set</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$key</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$cert</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$ca</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$capath</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$cipher</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">string</span><span class="methodname"><a href="mysqli.stat.html" class="methodname">mysqli::stat</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">mysqli_stmt</span><span class="methodname"><a href="mysqli.stmt-init.html" class="methodname">mysqli::stmt_init</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">mysqli_result</span><span class="methodname"><a href="mysqli.store-result.html" class="methodname">mysqli::store_result</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">int</span><span class="methodname"><strong>mysqli_thread_id</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.mysqli.html" class="type mysqli">mysqli</a></span> <code class="parameter">$link</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">bool</span><span class="methodname"><strong>mysqli_thread_safe</strong></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">mysqli_result</span><span class="methodname"><a href="mysqli.use-result.html" class="methodname">mysqli::use_result</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">int</span><span class="methodname"><strong>mysqli_warning_count</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.mysqli.html" class="type mysqli">mysqli</a></span> <code class="parameter">$link</code></span>
   )</div>

   }</div>

 
  </div>
 
 </div>
 
 



























































































































































































































































































































































































































<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="mysqli.affected-rows.html">mysqli::$affected_rows</a> — Gets the number of affected rows in a previous MySQL operation</li><li><a href="mysqli.autocommit.html">mysqli::autocommit</a> — 打开或关闭本次数据库连接的自动命令提交事务模式</li><li><a href="mysqli.begin-transaction.html">mysqli::begin_transaction</a> — Starts a transaction</li><li><a href="mysqli.change-user.html">mysqli::change_user</a> — Changes the user of the specified database connection</li><li><a href="mysqli.character-set-name.html">mysqli::character_set_name</a> — 返回当前数据库连接的默认字符编码</li><li><a href="mysqli.client-info.html">mysqli::$client_info</a> — Get MySQL client info</li><li><a href="mysqli.client-version.html">mysqli::$client_version</a> — Returns the MySQL client version as a string</li><li><a href="mysqli.close.html">mysqli::close</a> — 关闭先前打开的数据库连接</li><li><a href="mysqli.commit.html">mysqli::commit</a> — 提交一个事务</li><li><a href="mysqli.connect-errno.html">mysqli::$connect_errno</a> — Returns the error code from last connect call</li><li><a href="mysqli.connect-error.html">mysqli::$connect_error</a> — Returns a string description of the last connect error</li><li><a href="mysqli.construct.html">mysqli::__construct</a> — Open a new connection to the MySQL server</li><li><a href="mysqli.debug.html">mysqli::debug</a> — Performs debugging operations</li><li><a href="mysqli.dump-debug-info.html">mysqli::dump_debug_info</a> — 将调试信息输出到日志</li><li><a href="mysqli.errno.html">mysqli::errno</a> — 返回最近函数调用的错误代码</li><li><a href="mysqli.error-list.html">mysqli::$error_list</a> — Returns a list of errors from the last command executed</li><li><a href="mysqli.error.html">mysqli::$error</a> — Returns a string description of the last error</li><li><a href="mysqli.field-count.html">mysqli::$field_count</a> — Returns the number of columns for the most recent query</li><li><a href="mysqli.get-charset.html">mysqli::get_charset</a> — Returns a character set object</li><li><a href="mysqli.get-client-info.html">mysqli::get_client_info</a> — Get MySQL client info</li><li><a href="mysqli.get-client-stats.html">mysqli_get_client_stats</a> — Returns client per-process statistics</li><li><a href="mysqli.get-client-version.html">mysqli_get_client_version</a> — Returns the MySQL client version as an integer</li><li><a href="mysqli.get-connection-stats.html">mysqli::get_connection_stats</a> — Returns statistics about the client connection</li><li><a href="mysqli.get-host-info.html">mysqli::$host_info</a> — Returns a string representing the type of connection used</li><li><a href="mysqli.get-proto-info.html">mysqli::$protocol_version</a> — Returns the version of the MySQL protocol used</li><li><a href="mysqli.get-server-info.html">mysqli::$server_info</a> — Returns the version of the MySQL server</li><li><a href="mysqli.get-server-version.html">mysqli::$server_version</a> — Returns the version of the MySQL server as an integer</li><li><a href="mysqli.get-warnings.html">mysqli::get_warnings</a> — Get result of SHOW WARNINGS</li><li><a href="mysqli.info.html">mysqli::$info</a> — Retrieves information about the most recently executed query</li><li><a href="mysqli.init.html">mysqli::init</a> — Initializes MySQLi and returns a resource for use with mysqli_real_connect()</li><li><a href="mysqli.insert-id.html">mysqli::$insert_id</a> — Returns the auto generated id used in the last query</li><li><a href="mysqli.kill.html">mysqli::kill</a> — Asks the server to kill a MySQL thread</li><li><a href="mysqli.more-results.html">mysqli::more_results</a> — Check if there are any more query results from a multi query</li><li><a href="mysqli.multi-query.html">mysqli::multi_query</a> — Performs a query on the database</li><li><a href="mysqli.next-result.html">mysqli::next_result</a> — Prepare next result from multi_query</li><li><a href="mysqli.options.html">mysqli::options</a> — Set options</li><li><a href="mysqli.ping.html">mysqli::ping</a> — Pings a server connection, or tries to reconnect if the connection has gone down</li><li><a href="mysqli.poll.html">mysqli::poll</a> — Poll connections</li><li><a href="mysqli.prepare.html">mysqli::prepare</a> — Prepare an SQL statement for execution</li><li><a href="mysqli.query.html">mysqli::query</a> — 对数据库执行一次查询</li><li><a href="mysqli.real-connect.html">mysqli::real_connect</a> — Opens a connection to a mysql server</li><li><a href="mysqli.real-escape-string.html">mysqli::real_escape_string</a> — Escapes special characters in a string for use in an SQL statement, taking into account the current charset of the connection</li><li><a href="mysqli.real-query.html">mysqli::real_query</a> — 执行一个mysql查询</li><li><a href="mysqli.reap-async-query.html">mysqli::reap_async_query</a> — Get result from async query</li><li><a href="mysqli.refresh.html">mysqli::refresh</a> — Refreshes</li><li><a href="mysqli.release-savepoint.html">mysqli::release_savepoint</a> — Rolls back a transaction to the named savepoint</li><li><a href="mysqli.rollback.html">mysqli::rollback</a> — 回退当前事务</li><li><a href="mysqli.rpl-query-type.html">mysqli::rpl_query_type</a> — Returns RPL query type</li><li><a href="mysqli.savepoint.html">mysqli::savepoint</a> — Set a named transaction savepoint</li><li><a href="mysqli.select-db.html">mysqli::select_db</a> — 选择用于数据库查询的默认数据库</li><li><a href="mysqli.send-query.html">mysqli::send_query</a> — 发送请求并返回结果</li><li><a href="mysqli.set-charset.html">mysqli::set_charset</a> — 设置默认字符编码</li><li><a href="mysqli.set-local-infile-default.html">mysqli::set_local_infile_default</a> — Unsets user defined handler for load local infile command</li><li><a href="mysqli.set-local-infile-handler.html">mysqli::set_local_infile_handler</a> — Set callback function for LOAD DATA LOCAL INFILE command</li><li><a href="mysqli.sqlstate.html">mysqli::$sqlstate</a> — Returns the SQLSTATE error from previous MySQL operation</li><li><a href="mysqli.ssl-set.html">mysqli::ssl_set</a> — Used for establishing secure connections using SSL</li><li><a href="mysqli.stat.html">mysqli::stat</a> — Gets the current system status</li><li><a href="mysqli.stmt-init.html">mysqli::stmt_init</a> — 初始化一条语句并返回一个用于mysqli_stmt_prepare(调用)的对象</li><li><a href="mysqli.store-result.html">mysqli::store_result</a> — Transfers a result set from the last query</li><li><a href="mysqli.thread-id.html">mysqli::$thread_id</a> — Returns the thread ID for the current connection</li><li><a href="mysqli.thread-safe.html">mysqli::thread_safe</a> — 返回是否是线程安全的</li><li><a href="mysqli.use-result.html">mysqli::use_result</a> — Initiate a result set retrieval</li><li><a href="mysqli.warning-count.html">mysqli::$warning_count</a> — Returns the number of warnings from the last query for the given link</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mysqli.summary.html">MySQLi扩展功能概述</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mysqli.affected-rows.html">mysqli::$affected_rows</a></div>
 <div class="up"><a href="book.mysqli.html">Mysqli</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
